package com.lex.aspect;

import com.lex.util.MyContext;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyContextAspect {

    @After("execution(* com.lex.controller.*.*(..))")
    public void After(){
        System.out.println("TencentAspect After");
        MyContext.clear();
        MyContext.clearUserName();
    }
}
